package valoskmdev.bean;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class Issue extends EntityBase implements Serializable {

	private static final long serialVersionUID = 1L;

	@Persistent
	private Date issueDate;
	@Persistent
	private String type;
	@Persistent
	private Integer kilometer;
	@Persistent
	private Vehicle vehicle;

	public Date getIssueDate() {
		return issueDate;
	}

	public void setIssueDate(final Date issueDate) {
		this.issueDate = issueDate;
	}

	public String getType() {
		return type;
	}

	public void setType(final String type) {
		this.type = type;
	}

	public Integer getKilometer() {
		return kilometer;
	}

	public void setKilometer(final Integer kilometer) {
		this.kilometer = kilometer;
	}

	public Vehicle getVehicle() {
		return vehicle;
	}

	public void setVehicle(final Vehicle vehicle) {
		this.vehicle = vehicle;
	}
	
	@Override
	public String toString() {
		return this.type + " : " + this.kilometer.toString();
	}

}
